﻿using Newtonsoft.Json;

namespace WeiXin.Base.Card.Info
{
    /// <summary>
    /// 卡券高级信息
    /// </summary>
    public partial class AdvancedInfo
    {
        /// <summary>
        /// 使用门槛（条件）字段，若不填写使用条件则在券面拼写：无最低消费限制，全场通用，不限品类；并在使用说明显示：可与其他优惠共享
        /// </summary>	
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public UseConditionInfo use_condition { get; set; }

        /// <summary>
        /// 满减门槛字段，可用于兑换券和代金券，填入后将在全面拼写消费满xx元可用。
        /// </summary>	
        [JsonProperty(NullValueHandling = NullValueHandling.Include, Required = Required.Always)]
        public string least_cost { get; set; }

        /// <summary>
        /// 购买xx可用类型门槛，仅用于兑换，填入后自动拼写购买xxx可用。
        /// </summary>	
        [JsonProperty(NullValueHandling = NullValueHandling.Include, Required = Required.Always)]
        public string object_use_for { get; set; }

        /// <summary>
        /// 封面
        /// </summary>	
        [JsonProperty(PropertyName = "abstract",NullValueHandling = NullValueHandling.Include, Required = Required.Always)]
        public AbstractInfo abstract_info { get; set; }

        /// <summary>
        /// 图文列表，显示在详情内页，优惠券券开发者须至少传入一组图文列表
        /// </summary>	
        [JsonProperty(NullValueHandling = NullValueHandling.Include,Required =Required.Always)]
        public TextImageInfo[] text_image_list { get; set; }

        /// <summary>
        /// 使用时段限制，包含以下字段
        /// </summary>	
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public TimeLimitInfo[] time_limit { get; set; }

        /// <summary>
        /// 商家服务类型：
        ///     BIZ_SERVICE_DELIVER 外卖服务；
        ///     BIZ_SERVICE_FREE_PARK 停车位；
        ///     BIZ_SERVICE_WITH_PET 可带宠物；
        ///     BIZ_SERVICE_FREE_WIFI 免费wifi，
        ///     可多选
        /// </summary>	
        [JsonProperty(NullValueHandling = NullValueHandling.Include)]
        public string[] business_service { get; set; }
    }
}
